﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XendApp
{
    public class ValidationResult
    {
        public enum ValidationResultT
        {
            Success,
            Error,
            Failed,
            NotApproved,
            Undefined
        }

        private ValidationResultT m_validationResultType = ValidationResultT.Undefined;
        /// <summary>
        /// Result of validation
        /// </summary>
        public ValidationResultT ValidationResultType
        {
            get { return m_validationResultType; }
            set { m_validationResultType = value; }
        }

        private string m_errorString;
        /// <summary>
        /// Error string if result type Error
        /// </summary>
        public string ErrorString
        {
            get { return m_errorString; }
            set { m_errorString = value; }
        }
    }
}
